<div class="layui-form-item">
    <label class="layui-form-label">{$value['desc']}</label>
    <div class="layui-input-block <{$value['class']}>" style="{$value['style']}">
        {if $value['value']==1}
        <input type="checkbox" checked="" name="{$value['name']}" lay-skin="switch" lay-filter="switchTest" lay-text="ON|OFF">
        {else}
        <input type="checkbox" name="{$value['name']}" lay-skin="switch" lay-filter="switchTest" lay-text="ON|OFF">
        {/if}
    </div>
</div>